<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<%@ include file="/jsp/imports/header.jsp" %>
</head>

<body>
<c:set var="page" value="abrirListarTurma.do" scope="session"/>
<div class="contentwrap">
	
<div class="headwrap">

  <%@ include file="/jsp/imports/top.jsp" %>   
    


	<div class="container content">
		
	  <div class="span-20 append-2 prepend-2">
	  
	  
	   
        <%@ include file="/jsp/imports/mensagens.jsp" %>
  	
  	
    
  <%@include file="/jsp/imports/menuLateral.jsp" %>
  


		  <div class="span-12 services last">
		  		<h2 align="center"><fmt:message key="listagemTurmas.titulo"/></h2>
				<br/>
				<table border="1" align="center">
					<tr>
						<th><fmt:message key="codigo"/></th>
						<th><fmt:message key="disciplina"/></th>
						<th><fmt:message key="professor"/></th>
						<th><fmt:message key="diaSemana"/></th>
						<th><fmt:message key="horario"/></th>
						<th><fmt:message key="semestre"/>/<fmt:message key="ano"/></th>
						<th><fmt:message key="acao.verPlano"/></th>
						<th><fmt:message key="acao.alterar"/></th>
						<th><fmt:message key="acao.excluir"/></th>
					</tr>
					<c:forEach items="${turmas}" var="turma">
						<tr>
							<td><c:out value="${turma.codigo}" /></td>
							<td><c:out value="${turma.disciplina.nome}" /></td>
							<td><c:out value="${turma.professor.nome}" /></td>
							<td>
								<c:forEach items="${turma.diasSemana}" var="diaSemana">
									<c:out value="${diaSemana.extenso}" /><br/>
								</c:forEach>
							</td>
							<td><c:out value="${turma.horario}" /></td>
							<td><c:out value="${turma.semestre}" />/<c:out value="${turma.ano}" /></td>
							<td><a href="jasperPlanoEnsino.do?idTurma=<c:out value="${turma.idTurma}"/>"><img alt="alterar" src="${pageContext.request.contextPath}/images/icons/report.png"/></a></td>
							<td><a href="abrirAlterarTurma.do?idTurma=<c:out value="${turma.idTurma}" />"><img alt="alterar" src="${pageContext.request.contextPath}/images/icons/change.png"/></a></td>
							<td><a href="excluirTurma.do?idTurma=<c:out value="${turma.idTurma}" />"><img alt="excluir" src="${pageContext.request.contextPath}/images/icons/delete.png"/></a></td>
						</tr>
					</c:forEach>
				</table>
		  </div>
			
		  <div class="final"></div>
		
		</div>
	
	</div>

</div>

</div>

 
<%@ include file="/jsp/imports/footer.jsp" %>
</body>
</html>